package ${pageParam.packagePath};

<#list pageParam.packages as pkg>
<#if pkg?has_content>
import ${pkg};
<#else>

</#if>
</#list>

/**
 * <p>
 * ${tableComment!} 分页查询参数
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Data
@EqualsAndHashCode(callSuper = true)
<#if tableComment??>@Schema(description = "${tableComment} 分页查询参数")</#if>
public class ${pageParam.className} extends AbstractPageQueryParams {
<#list fieldInfoList as field>
    <#if field.showInQuery>

    <#if field.comment!?length gt 0>
    @Schema(description = "${field.comment}<#if field.enumDict??> 参考字典: ${field.enumDict.name}</#if>")
    <#elseif field.enumDict??>
    @Schema(description = "参考字典: ${field.enumDict.name}")
    </#if>
    <#if field.queryType?? && field.queryType.mpType="between">
    <#--范围查询-->
    private List<${field.fieldType}> ${field.fieldName};

    <#if field.comment!?length gt 0>
    @Schema(description = "${field.comment}-开始<#if field.enumDict??> 参考字典: ${field.enumDict.name}</#if>")
    <#elseif field.enumDict??>
    @Schema(description = "开始 参考字典: ${field.enumDict.name}")
    </#if>
    private ${field.fieldType} ${field.fieldName}Start;

    <#if field.comment!?length gt 0>
    @Schema(description = "${field.comment}-结束<#if field.enumDict??> 参考字典: ${field.enumDict.name}</#if>")
    <#elseif field.enumDict??>
    @Schema(description = "结束 参考字典: ${field.enumDict.name}")
    </#if>
    private ${field.fieldType} ${field.fieldName}End;

    public void set${field.fieldName?cap_first}(List<${field.fieldType}> ${field.fieldName}) {
        if (CollUtil.isNotEmpty(${field.fieldName}) && ${field.fieldName}.size() >= 2) {
            this.set${field.fieldName?cap_first}Start(${field.fieldName}.get(0));
            this.set${field.fieldName?cap_first}End(${field.fieldName}.get(1));
        }
        this.${field.fieldName} = ${field.fieldName};
    }
    <#else>
    <#--普通字段-->
    private ${field.fieldType} ${field.fieldName};
    </#if>
    </#if>
</#list>
}
